/**
 * Created by Freeman on 2016/7/1.
 */
var Tag = require('../../models/tag.model');


exports.getFrontTags = function (req,res,next) {
    Tag.findAsync({is_show:true},{},{sort:{'sort':-1}}).then(function (result) {
        return res.status(200).json({data:result});
    }).catch(function (err) {
        return next(err);
    });
}